/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Business;

import Entity.Etbl_Country;
import Model.DALtbl_Country;
import java.util.ArrayList;

/**
 *
 * @author LeThuyLinh
 */
public class Btbl_Country {
    private DALtbl_Country _objDAL_Country=null;
    public Btbl_Country(){
        _objDAL_Country=new DALtbl_Country();
    }
    public boolean Addtbl_Country(Etbl_Country objEtbl_Country){
        return _objDAL_Country.Addtbl_Country(objEtbl_Country);
    }
    public boolean Updatetbl_Country(Etbl_Country objEtbl_Country){
        return _objDAL_Country.updatetbl_Country(objEtbl_Country);
    }
    public boolean Deletetbl_Country(int countryID){
        if(countryID>0){
        return _objDAL_Country.deletetbl_Country(countryID);
        }
        else{
            return false;
        }
    }
    public Etbl_Country GetOnetbl_Country(int country_Id){
        if(country_Id>0)
            return _objDAL_Country.getCountry(country_Id);
        else
            return null;
    }
    public ArrayList GetListCountry(String orderBy, String ASCorDESC, String WhereClause, int PagingIndex, int PagingSize){
        return _objDAL_Country.getListCountry(orderBy, ASCorDESC, WhereClause, PagingIndex, PagingSize);
    }
}
